Skip to content

Conversation

@nirinchev
Copy link
Collaborator

This removes our default of 1000 for numInitialChunks in shardAndDistributeCollection. Additionally, it fixes what I believe was a bug where the collation option was ignored when calling reshardCollection.

@nirinchev nirinchev requested a review from addaleax February 21, 2025 12:48
reshardOptions.numInitialChunks = options.numInitialChunks;
}

if (options?.collation !== undefined) {
Copy link
Collaborator Author

@nirinchev nirinchev Feb 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not 100% sure about this one, but reading the docs for reshardCollection, it appears that there are cases where collation must be included. We would already be passing it correctly to shardCollection, but were previously ignoring it for reshardCollection, which would have resulted in the latter failing.

@nirinchev nirinchev merged commit 30ec9a9 into main Feb 24, 2025
133 of 135 checks passed
@nirinchev nirinchev deleted the ni/shard-and-distribute branch February 24, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants